<template>
    <div>
        <TEACHER_PAGE v-if="userType === '00' || userType === '1'"/>
        <STUDENT_PAGE v-else/>
    </div>
</template>

<script>

import TEACHER_PAGE from '@/views/system/user/teacher/index.vue'
import STUDENT_PAGE from '@/views/system/user/student/profile.vue'

export default {
    components: {TEACHER_PAGE,STUDENT_PAGE},
    name: "Index",
    data() {
        return {
            // 用户类型
            userType: null,
        };
    },
    methods: {

    },
    created() {
        this.userType = this.$store.state.user.userType
        if (this.userType === null){
            this.userType = this.$store.state.user.user.userType;
        }
    }
};
</script>

<style scoped lang="scss">
</style>

